1500 |
How can I add a Zero-Lenght bar
exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2); (var_Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,258); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.AllowLinkBars = false; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; int h1 = var_Items.AddItem("M1"); var_Items.AddBar(h1,"Milestone",Convert.ToDateTime("9/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); exg2antt1.EndUpdate(); |
1499 |
Can I use bars like Milestone (Zero-Length bar) in SchedulePDM
// BarResizing event - Occurs when a bar is moving or resizing. private void exg2antt1_BarResizing(object sender,int Item,object Key) { System.Diagnostics.Debug.Print( exg2antt1.Items.SchedulePDM(Item,Key).ToString() ); } //this.exg2antt1.BarResizing += new exontrol.EXG2ANTTLib.exg2antt.BarResizingEventHandler(this.exg2antt1_BarResizing); exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,543); (var_Columns.Add("Duration") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,258); exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = exg2antt1.ConditionalFormats.Add("%3",null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ApplyTo = exontrol.EXG2ANTTLib.FormatApplyToEnum.exFormatToItems; exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat1 = exg2antt1.ConditionalFormats.Add("%3 = 0",null); var_ConditionalFormat1.ForeColor = Color.FromArgb(196,196,196); var_ConditionalFormat1.ApplyTo = (exontrol.EXG2ANTTLib.FormatApplyToEnum)0x3; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.Bars.Add("Task:Split").Shortcut = "Task"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; int h1 = var_Items.AddItem("M1"); var_Items.AddBar(h1,"Milestone",Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h1,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); int h2 = var_Items.AddItem("T1"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h2,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEndInclusive,Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_ItemBar(h2,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); var_Items.AddLink("L1",h1,"",h2,""); int h3 = var_Items.AddItem("T2"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h3,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEndInclusive,Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_ItemBar(h3,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); var_Items.AddLink("L2",h1,"",h3,""); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkPDMWorkingDelay,5); int h4 = var_Items.AddItem("M3"); var_Items.AddBar(h4,"Milestone",Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h4,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,false); var_Items.AddLink("L3",h1,"",h4,""); var_Items.set_Link("L3",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkPDMWorkingDelay,5); var_Items.SchedulePDM(0,""); exg2antt1.EndUpdate(); |
1498 |
How can I prevent vertical scrolling when user clicks the overview part of the control
|
1497 |
I need to specify the start and end dates of the bar to be the same, but no bars are shown. (recommended for bars with exBarKeepWorkingCount ) What I can do
exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,543); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.ShowEmptyBars = 0; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEndInclusive,var_Items.get_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart)); var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); h = var_Items.AddItem("Task 2"); var_Items.AddBar(h,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEndInclusive,Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.set_ItemBar(h,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); exg2antt1.EndUpdate(); |
1496 |
How can I display the end date to be the last visible date of task, instead the next day
// BarResize event - Occurs when a bar is moved or resized. private void exg2antt1_BarResize(object sender,int Item,object Key) { exg2antt1.Items.SchedulePDM(Item,Key); } //this.exg2antt1.BarResize += new exontrol.EXG2ANTTLib.exg2antt.BarResizeEventHandler(this.exg2antt1_BarResize); // BarResizing event - Occurs when a bar is moving or resizing. private void exg2antt1_BarResizing(object sender,int Item,object Key) { exg2antt1.Items.SchedulePDM(Item,Key); } //this.exg2antt1.BarResizing += new exontrol.EXG2ANTTLib.exg2antt.BarResizingEventHandler(this.exg2antt1_BarResizing); exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exg2antt1.HeaderHeight = 36; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column); var_Column.HTMLCaption = "<b>End</b><br>Inclusive"; var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,543); var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType; (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2); exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = exg2antt1.ConditionalFormats.Add(1.ToString(),null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ApplyTo = (exontrol.EXG2ANTTLib.FormatApplyToEnum)0x2; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.Bars.Add("Task:Split").Shortcut = "Task"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddLink("link",h1,"",h2,""); var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); var_Items.SchedulePDM(0,""); exg2antt1.EndUpdate(); |
1495 |
How do I hide the selection
exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exg2antt1.SelForeColor = exg2antt1.ForeColor; exg2antt1.SelBackColor = exg2antt1.BackColor; exg2antt1.ShowFocusRect = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Format") as exontrol.EXG2ANTTLib.Column); var_Column.FormatColumn = "type(value) in (0,1) ? 'null' : ( dbl(value)<0 ? '<fgcolor=FF0000>'+ (value format '2|.|3|,|1' ) : (dbl(value)>0 ? '<fgcolor=00" + "00FF>+'+(value format '2|.|3|,' ): '0.00') )"; var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddItem(10); var_Items.AddItem(-8); exg2antt1.EndUpdate(); |
1494 |
How do I access the cells, or how do I get the values in the columns
exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("C1"); var_Columns.Add("C2"); var_Columns.Add("C3"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Item 1"); var_Items.set_CellValue(h,1,"SubItem 1.1"); var_Items.set_CellValue(h,2,"SubItem 1.2"); System.Diagnostics.Debug.Print( var_Items.get_CellValue(h,1).ToString() ); |
1493 |
Is there any function I can use to indicate the Now() when using the ComputedFields, CondtionalFormats, ...
(exg2antt1.Columns.Add("Now") as exontrol.EXG2ANTTLib.Column).ComputedField = "date(``)"; exg2antt1.Items.AddItem(""); |
1492 |
How can I get the start and end points of the bar once the BarResize event occurs
// BarResize event - Occurs when a bar is moved or resized. private void exg2antt1_BarResize(object sender,int Item,object Key) { System.Diagnostics.Debug.Print( "Start: " ); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(Item,Key,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarStart).ToString() ); System.Diagnostics.Debug.Print( "End: " ); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(Item,Key,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarEnd).ToString() ); } //this.exg2antt1.BarResize += new exontrol.EXG2ANTTLib.exg2antt.BarResizeEventHandler(this.exg2antt1_BarResize); exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,96); exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; exg2antt1.Columns.Add("Types"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null); exg2antt1.EndUpdate(); |
1491 |
My chart displays hours, the question would be if possible to let user resizes the bars up to 1/2 hour, or a half an hour
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; var_Chart.LevelCount = 2; var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exMinute; var_Chart.ResizeUnitCount = 30; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines; var_Chart.get_Level(1).DrawGridLines = true; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddItem("Task"); var_Items.AddItem("Task"); var_Items.AddItem("Task"); var_Items.AddItem("Task"); var_Items.AddItem("Task"); exg2antt1.EndUpdate(); |
1490 |
How can I show the dates in the title
exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,0); var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines; var_Chart.get_Level(0).Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment; exg2antt1.EndUpdate(); |
1489 |
If I vertically scroll the control the image flows fluently. But when I scroll on the horizontal chart's scrollbar the images only shows after I release the click button. Can I make it scroll fluently like the vertical scrollbar
|
1488 |
How can I programmatically add a bar during the CreateBar event
// CreateBar event - Fired when the user creates a new bar. private void exg2antt1_CreateBar(object sender,int Item,DateTime DateStart,DateTime DateEnd) { exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; object k = var_Items.get_ItemBar(Item,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount); var_Items.AddBar(Item,"Order",DateStart,DateEnd,k,"your text"); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(Item,"",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() ); } //this.exg2antt1.CreateBar += new exontrol.EXG2ANTTLib.exg2antt.CreateBarEventHandler(this.exg2antt1_CreateBar); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarManual; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.Bars.Copy("Task","Order"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddItem(1); var_Items.AddItem(2); var_Items.AddItem(3); exg2antt1.EndUpdate(); |
1487 |
How can I move more bars by code
exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null); var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,1); var_Items.set_ItemBar(0,"<A*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,1); var_Items.set_ItemBar(0,"<B*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,1); |
1486 |
How can I move a bar by code
exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null); var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,1); |
1485 |
How can I clip the notes to the items zone only
exg2antt1.BeginUpdate(); exg2antt1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); exg2antt1.AntiAliasing = true; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddItem(null); int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null); exontrol.EXG2ANTTLib.Notes var_Notes = exg2antt1.Chart.Notes; exontrol.EXG2ANTTLib.Note var_Note = var_Notes.Add("1",exg2antt1.Items[1],"1","<img>2</img>"); var_Note.set_PartShadow(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,false); var_Note.set_PartBorderSize(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,0); var_Note.ClearPartBackColor(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd); var_Note.set_PartCanMove(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,true); var_Note.RelativePosition = 0.5; var_Note.set_PartVOffset(exontrol.EXG2ANTTLib.NotePartEnum.exNoteEnd,-36); var_Notes.ClipTo = exontrol.EXG2ANTTLib.NotesClipToEnum.exNotesClipToItems; exg2antt1.EndUpdate(); |
1484 |
How can I put two bars of various types, in the event of conflict do not coincide
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; var_Bar.OverlaidGroup = "NewTask"; exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","NewTask"); var_Bar1.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; var_Bar1.OverlaidGroup = "Task"; var_Bar1.Color = Color.FromArgb(255,0,0); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1","A1"); var_Items.AddBar(h,"NewTask",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(h,"NewTask",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3","A3"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4","A4"); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1483 |
How can I run trigger an event which, after clicking on the item/bar gives the key/name or item id
// MouseDown event - Occurs when the user presses a mouse button. private void exg2antt1_MouseDownEvent(object sender,short Button,short Shift,int X,int Y) { int item = exg2antt1.get_ItemFromPoint(-1,-1,column,hit); object key = exg2antt1.Chart.get_BarFromPoint(-1,-1); System.Diagnostics.Debug.Print( "Item:" ); System.Diagnostics.Debug.Print( item.ToString() ); System.Diagnostics.Debug.Print( "Key:" ); System.Diagnostics.Debug.Print( key.ToString() ); System.Diagnostics.Debug.Print( "CellValue(i,0):" ); System.Diagnostics.Debug.Print( exg2antt1.Items.get_CellValue(item,0).ToString() ); exg2antt1.Items.set_ItemBar(item,key,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); } //this.exg2antt1.MouseDownEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseDownEventHandler(this.exg2antt1_MouseDownEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,64); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); exg2antt1.EndUpdate(); |
1482 |
How can I change the check-boxes appearance
exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Default") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.PartialCheck = true; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); exontrol.EXG2ANTTLib.Appearance var_Appearance = exg2antt1.VisualAppearance; var_Appearance.Add(1,"XP:Button 3 12"); var_Appearance.Add(2,"XP:Button 3 11"); var_Appearance.Add(3,"XP:Button 3 10"); exg2antt1.set_CheckImage(exontrol.EXG2ANTTLib.CheckStateEnum.Unchecked,16777216); exg2antt1.set_CheckImage(exontrol.EXG2ANTTLib.CheckStateEnum.Checked,33554432); exg2antt1.set_CheckImage(exontrol.EXG2ANTTLib.CheckStateEnum.PartialChecked,50331648); |
1481 |
How can I change the color for the control's split bar (sample 1)
|
1480 |
Is it possible to display ONLY the working hours
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0); var_Level.Label = 4096; var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment; exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1); var_Level1.Label = "<%hh%>"; var_Level1.Count = 6; var_Chart.UnitWidth = 26; var_Chart.set_PaneWidth(false,0); var_Chart.NonworkingHours = 15728895; var_Chart.ShowNonworkingUnits = false; var_Chart.ShowNonworkingHours = false; |
1479 |
How can I display the end of the day in the chart's header
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0); var_Level.Label = 4096; var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment; exontrol.EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1); var_Level1.Label = "<%hh%>"; var_Level1.Count = 6; var_Level1.set_ReplaceLabel("08","<b>8</b> <font ;6>am"); var_Level1.set_ReplaceLabel("14","<b>8</b> <font ;6>pm"); var_Chart.UnitWidth = 26; var_Chart.set_PaneWidth(false,0); var_Chart.NonworkingHours = 15728895; var_Chart.ShowNonworkingUnits = false; var_Chart.ShowNonworkingHours = false; |
1478 |
How can I display the +/- expanding buttons in the chart section
exg2antt1.BeginUpdate(); exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot; exg2antt1.Indent = 13; exg2antt1.HasButtons = exontrol.EXG2ANTTLib.ExpandButtonEnum.exWPlus; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,0); var_Chart.ColumnsFormatLevel = "0"; var_Chart.SelBackColor = exg2antt1.SelBackColor; var_Chart.SelForeColor = exg2antt1.SelForeColor; exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("P1") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.PartialCheck = true; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Root"); var_Items.AddBar(var_Items.InsertItem(h,null,"Child 1"),"Task",Convert.ToDateTime("1/2/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.InsertItem(h,null,"Child 2"),"Task",Convert.ToDateTime("1/4/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.InsertItem(h,null,"Child 3"),"Task",Convert.ToDateTime("1/7/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ExpandItem(h,true); exg2antt1.EndUpdate(); |
1477 |
Is it possible to display the columns in the chart aligned to the right
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 24; exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Key") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,0); var_Column.Visible = false; var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,0); var_Chart.ColumnsFormatLevel = "|,1:52"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Split",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1476 |
How can I display a border in the chart
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 24; exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Key") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,0); var_Column.Visible = false; var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment; var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellForeColor,255); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,0); var_Chart.ColumnsFormatLevel = "1:52,\\\"\\\"[bg=255]:2"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Split",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1475 |
How can I change the font to display the columns in the chart (Method 2)
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 24; exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Key") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,0); var_Column.Visible = false; exontrol.EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = exg2antt1.ConditionalFormats.Add(1.ToString(),null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ApplyTo = (exontrol.EXG2ANTTLib.FormatApplyToEnum)0x1; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); var_Chart.ColumnsFormatLevel = "1"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Split",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1474 |
How can I change the font to display the columns in the chart (Method 1)
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 24; exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Key") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,0); var_Column.Visible = false; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); var_Chart.ColumnsFormatLevel = "1"; var_Chart.ColumnsFont = (exg2antt1.Font as stdole.IFontDisp); stdole.IFontDisp var_StdFont = var_Chart.ColumnsFont; var_StdFont.Size = 12; var_StdFont.Name = "Tahoma"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Split",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1473 |
How can I change the column's background color when it is displayed on the chart (Method 2)
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Key") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,0); var_Column.Visible = false; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); var_Chart.ColumnsFormatLevel = "1[bg=255]:52"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Split",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1472 |
How can I change the column's background color when it is displayed on the chart (Method 1)
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Key") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,0); var_Column.Visible = false; var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellBackColor,15790320); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); var_Chart.ColumnsFormatLevel = "1:52"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Split",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1471 |
Can the chart display any column
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Start") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); var_Column.Visible = false; var_Column.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.LeftAlignment; exontrol.EXG2ANTTLib.Column var_Column1 = (exg2antt1.Columns.Add("End") as exontrol.EXG2ANTTLib.Column); var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2); var_Column1.Visible = false; var_Column1.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); var_Chart.ColumnsFormatLevel = "1:52,|,2:52"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1470 |
Is it possible to display a check-box column on the chart
exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Check") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.Visible = false; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,48); var_Chart.ColumnsFormatLevel = "1"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); |
1469 |
Is it possible to disable the cell's editor context menu
exontrol.EXG2ANTTLib.Editor var_Editor = (exg2antt1.Columns.Add("Edit") as exontrol.EXG2ANTTLib.Column).Editor; var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.EditType; var_Editor.set_Option(exontrol.EXG2ANTTLib.EditorOptionEnum.exEditAllowContextMenu,false); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddItem(10); var_Items.AddItem(20); |
1468 |
How can I find a value in a drop down editor
exontrol.EXG2ANTTLib.Editor var_Editor = (exg2antt1.Columns.Add("DropDownList") as exontrol.EXG2ANTTLib.Column).Editor; var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DropDownListType; var_Editor.AddItem(1,"DDList 1",null); var_Editor.AddItem(2,"DDList 2",null); var_Editor.AddItem(3,"DDList 3",null); exontrol.EXG2ANTTLib.Editor var_Editor1 = (exg2antt1.Columns.Add("DropDown") as exontrol.EXG2ANTTLib.Column).Editor; var_Editor1.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DropDownType; var_Editor1.AddItem(1,"DDType 1",null); var_Editor1.AddItem(2,"DDType 2",null); var_Editor1.AddItem(3,"DDType 3",null); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.set_CellValue(.AddItem(1),1,exg2antt1.Columns[1].Editor.get_FindItem(1)); var_Items.set_CellValue(.AddItem(2),1,exg2antt1.Columns[1].Editor.get_FindItem(2)); |
1467 |
What is the difference between DropDownType and DropDownListType
exontrol.EXG2ANTTLib.Editor var_Editor = (exg2antt1.Columns.Add("DropDownList") as exontrol.EXG2ANTTLib.Column).Editor; var_Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DropDownListType; var_Editor.AddItem(1,"First item",null); var_Editor.AddItem(2,"Second item",null); var_Editor.AddItem(3,"Third item",null); exontrol.EXG2ANTTLib.Editor var_Editor1 = (exg2antt1.Columns.Add("DropDown") as exontrol.EXG2ANTTLib.Column).Editor; var_Editor1.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DropDownType; var_Editor1.AddItem(1,"First item",null); var_Editor1.AddItem(2,"Second item",null); var_Editor1.AddItem(3,"Third item",null); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.set_CellValue(var_Items.AddItem(1),1,"Any"); var_Items.set_CellValue(var_Items.AddItem(2),1,"Any"); |
1466 |
How can I mark or enlarge the selected bars, so I have a clear frame around (Method 3)
|
1465 |
How can I mark or enlarge the selected bars, so I have a clear frame around (Method 2)
|
1464 |
How can I mark or enlarge the selected bars, so I have a clear frame around (Method 1)
|
1463 |
How can I load my table from an Access 2007, using ADO
// AddItem event - Occurs after a new Item has been inserted to Items collection. private void exg2antt1_AddItem(object sender,int Item) { exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null); } //this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem); exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,256); var_Chart.LevelCount = 2; var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay; var_Chart.FirstWeekDay = exontrol.EXG2ANTTLib.WeekDayEnum.exMonday; var_Chart.OverviewVisible = exontrol.EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible; exg2antt1.ColumnAutoResize = false; exg2antt1.ContinueColumnScroll = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); exg2antt1.DataSource = (rs as ADODB.Recordset); exg2antt1.Items.AllowCellValueToItemBar = true; exg2antt1.Columns[2].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); exg2antt1.Columns[4].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2); exg2antt1.EndUpdate(); |
1462 |
Is it possible to enumerate the links without enumerating them
exg2antt1.AntiAliasing = true; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,128); var_Chart.NonworkingDays = 0; var_Chart.LinksWidth = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/16/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null); var_Items.AddLink("L3",h3,"K3",h4,"K4"); var_Items.set_Link("<L*>",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowDir,false); |
1461 |
How can I display a vertical line in the chart
// Click event - Occurs when the user presses and then releases the left mouse button over the tree control. private void exg2antt1_Click(object sender) { exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.MarkNowColor = Color.FromArgb(255,0,0); var_Chart.MarkNow = var_Chart.get_DateFromPoint(-1,-1); } //this.exg2antt1.Click += new exontrol.EXG2ANTTLib.exg2antt.ClickEventHandler(this.exg2antt1_Click); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("3/13/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,0); var_Chart.LevelCount = 2; var_Chart.MarkNowColor = Color.FromArgb(0,0,0); var_Chart.MarkNowWidth = 3; var_Chart.UnitWidth = 32; var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; |
1460 |
How can I use the MarkNowColor to mark a time line different then the time on the machine
|
1459 |
Is it possible to show the current date time using a delay
exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,0); var_Chart.LevelCount = 2; var_Chart.get_Level(0).Label = 1048576; exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(1); var_Level.Label = "<%ss%>"; var_Level.Count = 15; var_Chart.MarkNowColor = Color.FromArgb(0,0,255); var_Chart.MarkNowWidth = 3; var_Chart.MarkNowDelay = 0.00069444; exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/1/2018",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); |
1458 |
What are the options to show the links between bars
exg2antt1.AntiAliasing = true; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,128); var_Chart.NonworkingDays = 0; var_Chart.LinksWidth = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddItem(""); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddItem(""); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddItem(""); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,-1); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/18/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/20/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null); var_Items.AddLink("L3",h3,"K3",h4,"K4"); var_Items.set_Link("L3",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,1); var_Items.AddItem(""); int h5 = var_Items.AddItem("Task 5"); var_Items.AddBar(h5,"Task",Convert.ToDateTime("1/22/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/24/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K5",null); var_Items.AddLink("L4",h4,"K4",h5,"K5"); var_Items.set_Link("L4",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,2); |
1457 |
Is it possible to specify the link between bars to be a wider line
exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,128); var_Chart.NonworkingDays = 0; var_Chart.LinksStyle = exontrol.EXG2ANTTLib.LinkStyleEnum.exLinkSolid; var_Chart.LinksWidth = 2; var_Chart.LinksColor = Color.FromArgb(255,0,0); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); |
1456 |
Is it possible to create a link between the two specified bars so that the link was a straight line
exg2antt1.Columns.Add("Task"); exg2antt1.AntiAliasing = true; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,128); var_Chart.NonworkingDays = 0; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStyle,0); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkWidth,2); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkColor,255); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkShowRound,2); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); |
1455 |
I associate the bars with my columns, Start and End, but can not get it working for bars with non-empty keys. What am I doing wrong
exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"A"); exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column); var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2); var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"A"); exg2antt1.Items.AllowCellValueToItemBar = true; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,256); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h = var_Items.AddItem("Task 2"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/6/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2002",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); exg2antt1.EndUpdate(); |
1454 |
The right pane needs to show ONLY the hours 6am to 9pm (every hour) for one day only and the user should not to be able to scroll left or right nor see any other hours. How can I do that
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exStartDate,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Chart.set_ScrollRange(exontrol.EXG2ANTTLib.ScrollRangeEnum.exEndDate,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.NonworkingHours = 12582975; var_Chart.ShowNonworkingUnits = false; var_Chart.ShowNonworkingHours = false; var_Chart.get_Level(0).Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment; var_Chart.UnitWidth = 18; var_Chart.set_PaneWidth(true,294); var_Chart.ScrollBar = false; exg2antt1.OnResizeControl = exontrol.EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter; exg2antt1.EndUpdate(); |
1453 |
Is it possible to count only a specified type of bars without enumerating them
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Progress",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"P3","P3"); System.Diagnostics.Debug.Print( "K*" ); System.Diagnostics.Debug.Print( var_Items.get_ItemBar(0,"<K*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() ); System.Diagnostics.Debug.Print( "K* P*" ); System.Diagnostics.Debug.Print( var_Items.get_ItemBar(0,"<K* P*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() ); |
1452 |
How can I count or get the numbers of the bars in the chart
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); System.Diagnostics.Debug.Print( "All" ); System.Diagnostics.Debug.Print( var_Items.get_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() ); System.Diagnostics.Debug.Print( "A*" ); System.Diagnostics.Debug.Print( var_Items.get_ItemBar(0,"<A*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() ); System.Diagnostics.Debug.Print( "K*" ); System.Diagnostics.Debug.Print( var_Items.get_ItemBar(0,"<K*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() ); |
1451 |
Is it possible to remove only specified bars from ALL items at once
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); var_Items.RemoveBar(0,"<K*>"); |
1450 |
How can I remove all bars from the chart (method 2)
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); var_Items.ClearBars(0); |
1449 |
How can I remove all bars from the chart (method 1)
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); var_Items.RemoveBar(0,"<*>"); |
1448 |
Is it possible to update at once a property for several bars without enumerating them
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); var_Items.set_ItemBar(0,"<K*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); |
1447 |
Is it possible to update at once a property of ALL bars without enumerating them
exg2antt1.Columns.Add("Tasks"); exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2","A2"); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); |
1446 |
How do I prevent selecting a new item when selecting a bar
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,64); var_Chart.LevelCount = 2; var_Chart.SelectOnClick = false; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.set_SelectItem(var_Items.FirstVisibleItem,true); exg2antt1.EndUpdate(); |
1445 |
Is it possible to find out all incoming bars ( recursively )
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarIncomingBarsAllDebug).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1444 |
How do I find the incoming bars
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarIncomingBarsDebug).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1443 |
Is it possible to find out all incoming links ( recursively ). Incoming link is a link from another bar to the current bar
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarIncomingLinksAllAsString).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1442 |
How do I find the incoming links. Incoming link is link from another bar to the current bar
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarIncomingLinksAsString).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1441 |
Is it possible to find out all outgoing bars ( recursively )
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOutgoingBarsAllDebug).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1440 |
How do I find the outgoing bars
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOutgoingBarsDebug).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1439 |
Is it possible to find out all outgoing links ( recursively ). Outgoing link is link from a bar to another bar
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOutgoingLinksAllAsString).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1438 |
How do I find the outgoing links. Outgoing link is link from a bar to another bar
// MouseMove event - Occurs when the user moves the mouse. private void exg2antt1_MouseMoveEvent(object sender,short Button,short Shift,int X,int Y) { object b = exg2antt1.Chart.get_BarFromPoint(-1,-1); int i = exg2antt1.get_ItemFromPoint(-1,-1,c,hit); System.Diagnostics.Debug.Print( exg2antt1.Items.get_ItemBar(i,b,exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOutgoingLinksAsString).ToString() ); } //this.exg2antt1.MouseMoveEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseMoveEventHandler(this.exg2antt1_MouseMoveEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.NonworkingDays = 0; var_Chart.AllowLinkBars = true; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A"); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B"); var_Items.AddLink("L1",h1,"A",h2,"B"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C"); var_Items.AddLink("L2",h2,"B",h3,"C"); int h4 = var_Items.AddItem("Task 4"); var_Items.AddBar(h4,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"D","D"); var_Items.AddLink("L3",h1,"A",h4,"D"); exg2antt1.EndUpdate(); |
1437 |
How do I select a bar using the right-click
// MouseDown event - Occurs when the user presses a mouse button. private void exg2antt1_MouseDownEvent(object sender,short Button,short Shift,int X,int Y) { exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,false); var_Items.set_ItemBar(exg2antt1.get_ItemFromPoint(-1,-1,c,hit),exg2antt1.Chart.get_BarFromPoint(-1,-1),exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true); } //this.exg2antt1.MouseDownEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseDownEventHandler(this.exg2antt1_MouseDownEvent); exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,64); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); exg2antt1.EndUpdate(); |
1436 |
How can I add or change the padding (spaces) for captions in the control's header
exg2antt1.BeginUpdate(); (exg2antt1.Columns.Add("Padding-Left") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exHeaderPaddingLeft,18); exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Padding-Right") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exHeaderPaddingRight,18); var_Column.HeaderAlignment = exontrol.EXG2ANTTLib.AlignmentEnum.RightAlignment; exg2antt1.EndUpdate(); |
1435 |
Do you have any plans to add cell spacing and cell padding to the cells
exg2antt1.BeginUpdate(); exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines; exontrol.EXG2ANTTLib.Column var_Column = (exg2antt1.Columns.Add("Padding-Left") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellPaddingLeft,18); (exg2antt1.Columns.Add("No-Padding") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true); (exg2antt1.Columns.Add("Empty") as exontrol.EXG2ANTTLib.Column).Position = 0; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.set_CellValue(var_Items.AddItem("Item A.1"),1,"Item A.2"); var_Items.set_CellValue(var_Items.AddItem("Item B.1"),1,"Item B.2"); var_Items.set_CellValue(var_Items.AddItem("Item C.1"),1,"Item C.2"); exg2antt1.EndUpdate(); |
1434 |
Can I display somehow the filter just on the top of the list, with an editor associated to each column
// AddItem event - Occurs after a new Item has been inserted to Items collection. private void exg2antt1_AddItem(object sender,int Item) { exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AddBar(Item,"Task",var_Items.get_CellValue(Item,2),var_Items.get_CellValue(Item,4),null,null); } //this.exg2antt1.AddItem += new exontrol.EXG2ANTTLib.exg2antt.AddItemEventHandler(this.exg2antt1_AddItem); // Change event - Occurs when the user changes the cell's content. private void exg2antt1_Change(object sender,int Item,int ColIndex,ref object NewValue) { System.Diagnostics.Debug.Print( "Locked:" ); System.Diagnostics.Debug.Print( exg2antt1.Items.get_IsItemLocked(Item).ToString() ); exontrol.EXG2ANTTLib.Column var_Column = exg2antt1.Columns[ColIndex]; var_Column.Filter = NewValue.ToString(); var_Column.FilterType = exontrol.EXG2ANTTLib.FilterTypeEnum.exPattern; exg2antt1.ApplyFilter(); } //this.exg2antt1.Change += new exontrol.EXG2ANTTLib.exg2antt.ChangeEventHandler(this.exg2antt1_Change); // MouseUp event - Occurs when the user releases a mouse button. private void exg2antt1_MouseUpEvent(object sender,short Button,short Shift,int X,int Y) { exg2antt1.Edit(exg2antt1.Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0)); } //this.exg2antt1.MouseUpEvent += new exontrol.EXG2ANTTLib.exg2antt.MouseUpEventHandler(this.exg2antt1_MouseUpEvent); exg2antt1.ColumnAutoResize = false; exg2antt1.ScrollBySingleLine = true; exg2antt1.ContinueColumnScroll = false; exg2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US")); // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); exg2antt1.DataSource = (rs as ADODB.Recordset); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,2); int h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,0); var_Items.get_CellEditor(h,0).EditType = exontrol.EXG2ANTTLib.EditTypeEnum.EditType; h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exTop,1); var_Items.set_ItemHeight(h,4); var_Items.set_ItemDivider(h,0); var_Items.set_SelectableItem(h,false); |
1433 |
Is it possible to display information about the firing events
// Event event - Notifies the application once the control fires an event. private void exg2antt1_Event(object sender,int EventID) { System.Diagnostics.Debug.Print( exg2antt1.get_EventParam(-2).ToString() ); } //this.exg2antt1.Event += new exontrol.EXG2ANTTLib.exg2antt.EventEventHandler(this.exg2antt1_Event); |
1432 |
I need to specify the start and end dates of the bar to be the same, but to keep count of the working units. Is it possible
exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,543); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.ShowEmptyBars = 1; var_Chart.Bars.Add("Task:Split").Shortcut = "Task"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.set_ItemBar(0,"<*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true); exg2antt1.EndUpdate(); |
1431 |
I need to specify the start and end dates of the bar to be the same, but no bars are shown. (NOT recommended for bars with exBarKeepWorkingCount ) What I can do
exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column).set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,543); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.ShowEmptyBars = 1; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1430 |
I need my chart to display the end date with on day less. How can I do this (Method 2)
exg2antt1.BeginUpdate(); exg2antt1.MarkSearchColumn = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; var_Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1); var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType; exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as exontrol.EXG2ANTTLib.Column); var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,543); var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.DateType; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.set_PaneWidth(false,256); var_Chart.NonworkingDays = 0; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; var_Items.AllowCellValueToItemBar = true; var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/26/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null); exg2antt1.EndUpdate(); |
1429 |
Is it possible to change the width of a specified time unit
exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,0); var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.AllowInsideZoom = true; var_Chart.AllowResizeInsideZoom = false; var_Chart.InsideZoomOnDblClick = false; var_Chart.DefaultInsideZoomFormat.BackColorChart = Color.FromArgb(255,0,255); exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms; var_InsideZooms.SplitBaseLevel = false; var_InsideZooms.DefaultWidth = 18; exontrol.EXG2ANTTLib.InsideZoom var_InsideZoom = var_InsideZooms.Add(Convert.ToDateTime("1/15/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_InsideZoom.AllowInsideFormat = false; var_InsideZoom.Width = 128; exg2antt1.EndUpdate(); |
1428 |
The level unit of the chart is set to day, so i'd like to set the whole background of the current day. Is it possible to set a background color only on the current day (Method 2)
exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,0); var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.AllowInsideZoom = true; var_Chart.AllowResizeInsideZoom = false; var_Chart.InsideZoomOnDblClick = false; var_Chart.DefaultInsideZoomFormat.BackColorChart = Color.FromArgb(255,0,0); exontrol.EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms; var_InsideZooms.SplitBaseLevel = false; var_InsideZooms.DefaultWidth = 18; var_InsideZooms.Add(Convert.ToDateTime("1/15/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false; exg2antt1.EndUpdate(); |
1427 |
The level unit of the chart is set to day, so i'd like to set the whole background of the current day. Is it possible to set a background color only on the current day (Method 1)
exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,0); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.MarkTodayColor = var_Chart.BackColor; var_Chart.LevelCount = 2; var_Chart.MarkSelectDateColor32 = 0x7fff0000; var_Chart.SelectLevel = 1; var_Chart.set_SelectDate(Convert.ToDateTime("1/15/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")),true); exg2antt1.EndUpdate(); |
1426 |
How can I change the layout of my columns when using the exCRD
exg2antt1.BeginUpdate(); exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines; exg2antt1.DefaultItemHeight = 36; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("Column1") as exontrol.EXG2ANTTLib.Column); var_Column.Visible = false; var_Column.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.EditType; exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("Column2") as exontrol.EXG2ANTTLib.Column); var_Column1.Visible = false; var_Column1.Editor.EditType = exontrol.EXG2ANTTLib.EditTypeEnum.EditType; (var_Columns.Add("Column3") as exontrol.EXG2ANTTLib.Column).Visible = false; exontrol.EXG2ANTTLib.Column var_Column2 = (var_Columns.Add("FormatLevel") as exontrol.EXG2ANTTLib.Column); var_Column2.FormatLevel = "(0/1),2"; var_Column2.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellFormatLevel,var_Column2.FormatLevel); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Cell 1.1"); var_Items.set_CellValue(h,1,"Cell 1.2"); var_Items.set_CellValue(h,2,"Cell 1.3"); h = var_Items.AddItem("Cell 2.1"); var_Items.set_CellValue(h,1,"Cell 2.2"); var_Items.set_CellValue(h,2,"Cell 2.3"); exg2antt1.EndUpdate(); |
1425 |
How can I overlaid a single bar
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidGroup = "OTask"; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsNone; var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%9%>"); exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","OTask"); var_Bar1.OverlaidGroup = "Task"; var_Bar1.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStrict | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsCascade; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null); var_Items.AddBar(h,"OTask",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null); var_Items.set_ItemBar(h,"A2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4",null); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1424 |
How can I use the exOverlaidBarsCascade, exBarOverlaidKey
// CreateBar event - Fired when the user creates a new bar. private void exg2antt1_CreateBar(object sender,int Item,DateTime DateStart,DateTime DateEnd) { exg2antt1.Items.set_ItemBar(Item,"newbar",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"Level0"); } //this.exg2antt1.CreateBar += new exontrol.EXG2ANTTLib.exg2antt.CreateBarEventHandler(this.exg2antt1_CreateBar); exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsCascade; var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%9%>"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null); var_Items.set_ItemBar(h,"A1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"Level0"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null); var_Items.set_ItemBar(h,"A3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"Level0"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null); var_Items.set_ItemBar(h,"A2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); var_Items.set_ItemBar(h,"A2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"Level1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4",null); var_Items.set_ItemBar(h,"A4",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); var_Items.set_ItemBar(h,"A4",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"Level1"); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1423 |
How can I use the exOverlaidBarsStack+exOverlaidBarsStackAutoArrange
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%9%>"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4",null); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1422 |
How can I use the exOverlaidBarsStack
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%9%>"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4",null); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1421 |
How can I use the exOverlaidBarsIntersect
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIntersect; var_Bar.set_Overlaid(exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIntersect,"Progress"); var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%9%>"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4",null); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1420 |
How can I use the exOverlaidBarsOffset
exg2antt1.BeginUpdate(); exg2antt1.DefaultItemHeight = 22; exg2antt1.Columns.Add("Task"); exg2antt1.ScrollBySingleLine = true; exg2antt1.BackColorAlternate = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset; var_Bar.set_Def(exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%9%>"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Default"); int h = var_Items.AddItem("Overlaid"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A2",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3",null); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A4",null); h1 = var_Items.AddItem("Default"); exg2antt1.EndUpdate(); |
1419 |
Is it possible to specify the end of the project when using the SchedulePDM method
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,48); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"FS"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"SS"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkEndPos,0); var_Items.set_DefSchedulePDM(exontrol.EXG2ANTTLib.DefSchedulePDMEnum.exPDMScheduleType,2); var_Items.set_DefSchedulePDM(exontrol.EXG2ANTTLib.DefSchedulePDMEnum.exPDMScheduleDate,Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.SchedulePDM(0,"K1"); exg2antt1.EndUpdate(); |
1418 |
Is it possible to specify the start of the project when using the SchedulePDM method
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/28/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,48); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"FS"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"SS"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkStartPos,0); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkEndPos,0); var_Items.set_DefSchedulePDM(exontrol.EXG2ANTTLib.DefSchedulePDMEnum.exPDMScheduleType,1); var_Items.set_DefSchedulePDM(exontrol.EXG2ANTTLib.DefSchedulePDMEnum.exPDMScheduleDate,Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"))); var_Items.SchedulePDM(0,"K1"); exg2antt1.EndUpdate(); |
1417 |
How can I change the caption or the addition information being displayed in the Zoom-OnFly view
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly; var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"<font ;5><b><%h%><br><%AM/PM%></b></font>"); var_Chart.ZoomOnFlyCaption = "<br><c><b><font ;12><%=%C0 + ' / <fgcolor=00FF00>' + %3%></font></fgcolor></b><br><solidline><upline><b>Start</b>:<%=%1%><br><b" + ">End</b>:<%=%2%><br><b>Duration</b>:<%=round(%2-%1) + ' days'%><br><b>Working</b>:<%='<b>' + int(%258) + '</b> days' + (0:=(%258" + " - int(%258)) ? (' <fgcolor=FF0000><b>' + round(24 * =:0) + '</b> hours') : '') %>"; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); h = var_Items.AddItem(null); var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown."); var_Items.set_SelectableItem(h,false); exg2antt1.EndUpdate(); |
1416 |
How can I change the scale in the Zoom-OnFly view
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly; var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.set_Label(exontrol.EXG2ANTTLib.UnitEnum.exHour,"<font ;5><b><%h%><br><%AM/PM%></b></font>"); var_Chart.ZoomOnFlyCaption = ""; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); h = var_Items.AddItem(null); var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown."); var_Items.set_SelectableItem(h,false); exg2antt1.EndUpdate(); |
1415 |
Is it possible to change the Zoom-OnFly view's background color
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly; var_Chart.BackColorZoomOnFly = Color.FromArgb(240,240,240); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); h = var_Items.AddItem(null); var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown."); var_Items.set_SelectableItem(h,false); exg2antt1.EndUpdate(); |
1414 |
How can I include the selected items in the Zoom-OnFly view
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFlyIncludeSelectedItems | exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly; var_Chart.SelBackColor = Color.FromArgb(240,240,240); var_Chart.SelectOnClick = false; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); var_Items.set_SelectItem(h,true); h = var_Items.AddItem("Task 2"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2","T2"); h = var_Items.AddItem("Task 3"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); h = var_Items.AddItem(null); var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown."); var_Items.set_SelectableItem(h,false); exg2antt1.EndUpdate(); |
1413 |
Is it possible to include the neighbors items in the Zoom-OnFly view
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFlyIncludeNeighborItems | exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); h = var_Items.AddItem("Task 2"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); h = var_Items.AddItem("Task 3"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); h = var_Items.AddItem(null); var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown."); var_Items.set_SelectableItem(h,false); exg2antt1.EndUpdate(); |
1412 |
How can I enable the Zoom-OnFly view
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("11/5/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.LevelCount = 2; var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exWeek; var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exDay; var_Chart.AllowZoomOnFly = exontrol.EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly; var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/18/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("2/24/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); h = var_Items.AddItem(null); var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown."); var_Items.set_SelectableItem(h,false); exg2antt1.EndUpdate(); |
1411 |
I am using the overlay bars on stack, can I somehow tell a type of bar, or a specific bar, to be always on top of all other’s. Like a Z-Index or something
exg2antt1.BeginUpdate(); exg2antt1.ScrollBySingleLine = true; exg2antt1.Columns.Add("Task"); exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exHLines; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exHLines; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exCreateBarAuto; var_Chart.AllowLinkBars = false; var_Chart.ResizeUnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.set_PaneWidth(false,48); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Task 1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A1","A1"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3","A3"); var_Items.set_ItemBar(h,"A3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280); h = var_Items.AddItem("Task 2"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A31","A31"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A3","A3"); var_Items.set_ItemBar(h,"A3",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255); var_Items.AddBar(var_Items.AddItem(null),"",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,"The <b>Key</b> of the bar specifies the Z-Order when overlaying."); exg2antt1.EndUpdate(); |
1410 |
Is it possible to specify the z-order when using the overlaying feature
exg2antt1.BeginUpdate(); exg2antt1.Columns.Add("Tasks"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.NonworkingDays = 0; var_Chart.FirstVisibleDate = Convert.ToDateTime("9/17/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,64); var_Chart.LevelCount = 2; var_Chart.Bars["Task"].OverlaidType = exontrol.EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsCascade; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","K1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/24/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","K2"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/22/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/25/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","K3"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/27/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/28/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/29/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T2","T2"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("9/30/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("10/3/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3"); var_Items.set_ItemBar(0,"<T*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280); var_Items.set_ItemBar(0,"<K*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"A"); var_Items.set_ItemBar(0,"<T*>",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarOverlaidKey,"B"); exg2antt1.EndUpdate(); |
1409 |
I seen that there is no exBarStartColor, exBarEndColor, similar to exBarColor, is there any solution so I can display a different Start/End Color
exg2antt1.BeginUpdate(); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Copy("Summary","Aka1"); var_Bar.StartColor = Color.FromArgb(255,0,0); var_Bar.EndColor = Color.FromArgb(0,0,255); exontrol.EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Summary","Aka2"); var_Bar1.StartColor = Color.FromArgb(0,255,0); var_Bar1.EndColor = Color.FromArgb(255,0,255); exg2antt1.Columns.Add("Column"); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Item A"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null); var_Items.set_ItemBar(h,"B1",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarName,"Aka1"); h = var_Items.AddItem("Item B"); var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null); var_Items.set_ItemBar(h,"B2",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarName,"Aka2"); exg2antt1.EndUpdate(); |
1408 |
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a snapshot
exg2antt1.BeginUpdate(); exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png"); exg2antt1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png"); exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragCopySnapShot; exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exNoLinesAtRoot; exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exThinLine; exg2antt1.ShowFocusRect = false; exg2antt1.DefaultItemHeight = 26; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.ShowNonworkingDates = false; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.LevelCount = 2; exontrol.EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"]; var_Bar.Color32 = 0x1000000; var_Bar.Height = 18; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("<img>p1:32</img>Group 1"); var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML); var_Items.set_ItemDivider(h,0); var_Items.set_ItemBold(h,true); int h1 = var_Items.InsertItem(h,null,"Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.InsertItem(h,null,"Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L1"); int h3 = var_Items.InsertItem(h,null,"Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L2"); h = var_Items.AddItem("<img>p2:32</img>Group 2"); var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); h1 = var_Items.InsertItem(h,null,"Task"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); var_Items.set_ExpandItem(0,true); exg2antt1.EndUpdate(); |
1407 |
How can copy and paste the selection to Microsoft Word, any OLE compliant application, as a image
exg2antt1.BeginUpdate(); exg2antt1.set_HTMLPicture("p1","c:\\exontrol\\images\\card.png"); exg2antt1.set_HTMLPicture("p2","c:\\exontrol\\images\\sun.png"); exg2antt1.Chart.set_PaneWidth(true,0); object var_HTMLPicture = exg2antt1.get_HTMLPicture("aka1"); exg2antt1.HeaderHeight = 24; exg2antt1.DefaultItemHeight = 48; exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exRowLines; exg2antt1.GridLineColor = Color.FromArgb(240,240,240); exg2antt1.SelBackMode = exontrol.EXG2ANTTLib.BackModeEnum.exTransparent; exg2antt1.ColumnAutoResize = false; exg2antt1.ContinueColumnScroll = false; // Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project. ADODB.Recordset rs = new ADODB.Recordset(); rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",exontrol.ADODB.CursorTypeEnum.adOpenStatic,exontrol.ADODB.LockTypeEnum.adLockOptimistic,0); exg2antt1.DataSource = (rs as ADODB.Recordset); exg2antt1.Columns[0].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1); exg2antt1.Columns[0].FormatColumn = "value + ` <img>p` + (1 + (value mod 3 ) ) + `</img>`"; exg2antt1.Columns[0].Width = 112; exg2antt1.Columns[1].set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,1); exg2antt1.Columns[2].LevelKey = "1"; exg2antt1.Columns[3].LevelKey = "1"; exg2antt1.Columns[4].LevelKey = "1"; exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragCopyImage; exg2antt1.SingleSel = false; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items[1]; var_Items.set_SelectItem(h,true); h = var_Items[2]; var_Items.set_SelectItem(h,true); h = var_Items[3]; var_Items.set_SelectItem(h,true); var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exBottom,1); h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exBottom,0); var_Items.set_CellValue(h,1,"<font ;16>Click the selection and <b>wait to start dragging</b>, and then drop to Microsoft Word, ..."); var_Items.set_CellSingleLine(h,1,exontrol.EXG2ANTTLib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CellValueFormat(h,1,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML); var_Items.set_CellHAlignment(h,1,exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment); var_Items.set_ItemDivider(h,1); var_Items.set_ItemDividerLineAlignment(h,exontrol.EXG2ANTTLib.DividerAlignmentEnum.DividerTop); exg2antt1.EndUpdate(); |
1406 |
How can copy and paste the selection to Microsoft Word, Excel or any OLE compliant application, as a text
|
1405 |
Is it possible to change the indentation during the drag and drop
exg2antt1.BeginUpdate(); exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragPositionAny; exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exNoLinesAtRoot; exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exSolidLine; exg2antt1.HasButtons = exontrol.EXG2ANTTLib.ExpandButtonEnum.exWPlus; exg2antt1.ShowFocusRect = false; exg2antt1.SelBackMode = exontrol.EXG2ANTTLib.BackModeEnum.exTransparent; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.ShowNonworkingDates = false; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,128); var_Chart.LevelCount = 2; var_Chart.Bars["Task"].Color32 = 0x1000000; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); int h1 = var_Items.InsertItem(h,null,"Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.InsertItem(h1,null,"Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null); h2 = var_Items.InsertItem(h1,null,"Task 3"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L1"); int h3 = var_Items.InsertItem(h,null,"Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L2"); var_Items.set_ExpandItem(h,true); var_Items.set_ExpandItem(h1,true); h = var_Items.AddItem("Group 2"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); var_Items.set_LockedItemCount(exontrol.EXG2ANTTLib.VAlignmentEnum.exBottom,1); h = var_Items.get_LockedItem(exontrol.EXG2ANTTLib.VAlignmentEnum.exBottom,0); var_Items.set_CellValue(h,0,"Click a row, and move by dragging <b>up, down</b> to change the row's parent or <b>left,right</b> to increase or decrease the i" + "ndentation."); var_Items.set_CellSingleLine(h,0,exontrol.EXG2ANTTLib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CellValueFormat(h,0,exontrol.EXG2ANTTLib.ValueFormatEnum.exHTML); exg2antt1.EndUpdate(); |
1404 |
Is it possible to allow moving an item to another, but keeping its indentation
exg2antt1.BeginUpdate(); exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragPositionKeepIndent; exg2antt1.LinesAtRoot = exontrol.EXG2ANTTLib.LinesAtRootEnum.exNoLinesAtRoot; exg2antt1.HasLines = exontrol.EXG2ANTTLib.HierarchyLineEnum.exThinLine; exg2antt1.ShowFocusRect = false; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.ShowNonworkingDates = false; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,96); var_Chart.LevelCount = 2; var_Chart.Bars["Task"].Color32 = 0x1000000; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Group 1"); var_Items.set_ItemDivider(h,0); var_Items.set_ItemBold(h,true); int h1 = var_Items.InsertItem(h,null,"Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.InsertItem(h,null,"Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L1"); int h3 = var_Items.InsertItem(h,null,"Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Group 2"); var_Items.set_ItemBold(h,true); var_Items.set_ItemDivider(h,0); exg2antt1.EndUpdate(); |
1403 |
How can I change the row's position to another, by drag and drop. Is it possible
exg2antt1.BeginUpdate(); exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.AutoDrag = exontrol.EXG2ANTTLib.AutoDragEnum.exAutoDragPosition; exg2antt1.Columns.Add("Task"); exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.ShowNonworkingDates = false; var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.set_PaneWidth(false,64); var_Chart.LevelCount = 2; var_Chart.Bars["Task"].Color32 = 0x1000000; exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h1 = var_Items.AddItem("Task 1"); var_Items.AddBar(h1,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null); int h2 = var_Items.AddItem("Task 2"); var_Items.AddBar(h2,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null); var_Items.AddLink("L1",h1,"K1",h2,"K2"); var_Items.set_Link("L1",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L1"); int h3 = var_Items.AddItem("Task 3"); var_Items.AddBar(h3,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null); var_Items.AddLink("L2",h2,"K2",h3,"K3"); var_Items.set_Link("L2",exontrol.EXG2ANTTLib.LinkPropertyEnum.exLinkText,"L2"); exg2antt1.EndUpdate(); |
1402 |
Is it possible to scroll the control's content by clicking and moving the mouse up or down
|
1401 |
How can I display bars so they fit the entire height ( height of the row )
exg2antt1.BeginUpdate(); exg2antt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exg2antt1.DefaultItemHeight = 36; exontrol.EXG2ANTTLib.Chart var_Chart = exg2antt1.Chart; var_Chart.set_PaneWidth(false,164); var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.UnitWidth = 48; var_Chart.LevelCount = 2; var_Chart.UnitScale = exontrol.EXG2ANTTLib.UnitEnum.exHour; var_Chart.NonworkingHours = 16253183; var_Chart.ShowNonworkingUnits = false; var_Chart.UnitWidth = 16; var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2012 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")); var_Chart.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines; var_Chart.Bars.Add("Empty").Pattern = exontrol.EXG2ANTTLib.PatternEnum.exPatternEmpty; exontrol.EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0); var_Level.Alignment = exontrol.EXG2ANTTLib.AlignmentEnum.exHOutside | exontrol.EXG2ANTTLib.AlignmentEnum.CenterAlignment; var_Level.Label = "<%d2%>"; var_Chart.AllowLinkBars = false; var_Chart.AllowCreateBar = exontrol.EXG2ANTTLib.CreateBarEnum.exNoCreateBar; var_Chart.BarsAllowSizing = false; var_Chart.AllowSelectObjects = exontrol.EXG2ANTTLib.SelectObjectsEnum.exNoSelectObjects; exg2antt1.DrawGridLines = exontrol.EXG2ANTTLib.GridLinesEnum.exAllLines; exg2antt1.ShowFocusRect = false; exontrol.EXG2ANTTLib.Columns var_Columns = exg2antt1.Columns; exontrol.EXG2ANTTLib.Column var_Column = (var_Columns.Add("CA") as exontrol.EXG2ANTTLib.Column); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellSingleLine,false); var_Column.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1); exontrol.EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("CB") as exontrol.EXG2ANTTLib.Column); var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellSingleLine,false); var_Column1.set_Def(exontrol.EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1); exontrol.EXG2ANTTLib.Items var_Items = exg2antt1.Items; int h = var_Items.AddItem("Address 1.1<br>Line 2.1<br>C1"); var_Items.set_ItemMaxHeight(h,96); var_Items.set_CellValue(h,1,"Address 1.2<br>Line 2.2<br>C2"); var_Items.AddBar(h,"Empty",Convert.ToDateTime("1/2/2012 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2012 19:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","This is a bit of text<br>being <font ;9>displayed ion the <b>bar A"); var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackColor,16777471); var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,0); var_Items.set_ItemBar(h,"A",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,2); var_Items.AddBar(h,"Empty",Convert.ToDateTime("1/3/2012 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/3/2012 19:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","<fgcolor=FFFFFF>This is a bit of text<br><fgcolor=FFFFFF>being <font ;9>displayed ion the <b>bar B"); var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackColor,33488896); var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,2); var_Items.set_ItemBar(h,"B",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,0); var_Items.AddBar(h,"Empty",Convert.ToDateTime("1/4/2012 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2012 19:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","<font Tahoma;12><b>bar C"); var_Items.set_ItemBar(h,"C",exontrol.EXG2ANTTLib.ItemBarPropertyEnum.exBarBackColor,33489151); exg2antt1.EndUpdate(); |